package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

public interface PermissionService {

    //添加权限
    void add(Permission permission);
    //分页查询
    PageResult pageQuery(QueryPageBean queryPageBean);
     //删除权限
    void delete(Integer id);
    //根据权限id查role
    List<Role> findRoleById(Integer id);
    //根据id查权限
    Permission findById(Integer id);
     //更新权限
    void edit(Permission permission);

    //查询所有
    List<Permission> findAll();
}
